package main

import (
	"fmt"
	"time"
)

func bar() {
	for i := 0; i < 20; i++ {
		fmt.Println("Bar:", i)
		time.Sleep(100 * time.Millisecond)
	}
}

func foo() {
	for i := 0; i < 20; i++ {
		fmt.Println("Foo:", i)
		time.Sleep(200 * time.Millisecond)
	}
}

func main() {
	go bar()
	go foo()
	time.Sleep(3 * time.Second)
}
